/**
 * Date:2017年12月25日上午11:09:32
 *
 */

package com.xue.action;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: demo <br/>
 * Date: 2017年12月25日 上午11:09:32 <br/>
 * 
 * @author xuejianxinokok@163.com
 */

@RequestMapping(value = DemoController.PATH)
@RestController("demoController")
public class DemoController {
	public static final String PATH = "/";
	private static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(DemoController.class);

	@GetMapping("admin/hello")
	public String admin() {
		return "hello admin!";
	}

	@GetMapping("user/hello")
	public String user() {
		return "hello user";
	}

	@GetMapping("hello")
	public String hello() {
		return "hello";
	}

}
